package com.bing.service;

import com.bing.entity.Bp.AppMessageInfo;
import com.bing.entity.Bp.BpApplyRecordInfo;
import com.bing.entity.Bp.BpInfo;
import com.bing.entity.Bp.CommentsFeedbackinfo;
import com.bing.entity.ImageInfo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Description user
 * @Author 胡日亮
 * @Date 2017/12/20 19:01
 */
public interface UserService {
    /**
     * 查询用户名是否存在
     *
     * @return int
     * @Author 胡日亮
     * @Date 2017/12/20 19:01
     */
    int findUser(String user);

    int validate(String user, String password);

    BpInfo  initBpinfo(BpInfo bpInfo) throws Exception;

    PageInfo<BpInfo> getBpinfoList(Integer pageNum);

    BpInfo checkBp(String tel);

    void initCommet(CommentsFeedbackinfo commentsFeedbackinfo);

    List<AppMessageInfo> getAppMessageInfoList();

    List<BpApplyRecordInfo> getBpregList(String bpId);

    void addImageInfo(ImageInfo imageInfo);
}
